package org.example.service;

import org.example.common.entity.User;
import org.springframework.stereotype.Service;

@Service
public interface UserService {

//    新增用户
    int insertUser(User user);

//  插入新用户包含openId
    int insertUserWithOpenId(User user);

//    删除用户
    int deleteUser(Long id);

    User selectUserById(Long id);

//  修改
    int updateUser(User user);

//    根据

    User selectUserByUsername(User user);
}
